# -*- coding: utf-8 -*-
"""
@author:xuyuntao
@time:2021/5/3:18:22
@email:xuyuntao@189.cn
"""
import winreg
def get_desktop():
    """返回桌面路径"""
    key = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
                         r'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders')
    return winreg.QueryValueEx(key,"Desktop")[0]